import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import http from '@/common/http'
import util from '@/common/util'

import { Loading } from 'element-ui';

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

import '@/assets/common.css';
import moment from "vue-moment";
import Print from 'vue-print-nb'

Vue.use(Print);  //注册

import VueAMap from 'vue-amap';

Vue.use(moment);
Vue.prototype.$Moment = moment;
Vue.use(ElementUI);
Vue.use(VueAMap);
VueAMap.initAMapApiLoader({
	key: 'c05a79566adf86c4403e0f47ff2c1ba2',
	plugin: ['AMap.Autocomplete', 'AMap.PlaceSearch', 'AMap.Scale', 'AMap.OverView', 'AMap.ToolBar', 'AMap.MapType', 'AMap.PolyEditor', 'AMap.CircleEditor', 'Geocoder'],
	// 默认高德 sdk 版本为 1.4.4
	uiVersion: '1.0',
	v: '1.4.4'
});


Vue.config.productionTip = false

Vue.prototype.$http = http;
Vue.prototype.$util = util;

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
